<?php

namespace app\models;

use yii\db\ActiveRecord;

/**
 * 代理商账户
 * Class AgentAccount
 * @package app\models
 *
 * @property integer $id PK
 * @property integer $agent_id 代理商编号
 * @property float $money 现金余额
 */
class AgentAccount extends ActiveRecord
{
    /**
     * @inheritDoc
     */
    public function rules()
    {
        return [
            ['money', 'default', 'value' => 0],
        ];
    }
}

